package top.ucat.boots.starter.oauth2.server.manager;

import top.ucat.boots.starter.oauth2.server.factory.DefaultLoginFactory;
import top.ucat.boots.starter.oauth2.server.factory.ScanQRSsoFactory;
import top.ucat.boots.starter.oauth2.server.factory.PhoneVerificationCodeSsoFactory;

/**
 * @Auther: Jun
 * @Date: 2019/9/4 10:43
 * @Description:
 */
public class Subject {

    private static Subject instance = new Subject();

    private Subject() {
    }

    public static Subject getInstance() {
        return instance;
    }

    public ScanQRSsoFactory getScanQRSsoFactory() {
        return ScanQRSsoFactory.getInstance();
    }

    public DefaultLoginFactory getDefaultLoginFactory() {
        return DefaultLoginFactory.getInstance();
    }

    public PhoneVerificationCodeSsoFactory getVerificationCodeSsoFactory() {
        return PhoneVerificationCodeSsoFactory.getInstance();
    }

//    public DefaultLoginFactory getDefaultLoginFactoryy() {
//        return DefaultLoginFactory.getInstance();
//    }

}
